import http from "@/api";

import { ModuleFlexJobUrl } from "..";
import { DealerJobVo, DealerJobCntVo } from "@/biz/interface/modules/DealerType";
import { ResPage } from "@/api/interface";

const moduleUrl = ModuleFlexJobUrl;

// * 获取订单表列表
export const getDealerJobVoListApi = (params: {}) => {
  return http.post<ResPage<DealerJobVo>>(moduleUrl + `/dealjobapi/applyjobs`, params);
};

// * 获取订单表列表的统计值
export const getDealerJobCntVoListApi = (params: {}) => {
  return http.post<DealerJobCntVo>(moduleUrl + `/dealjobapi/applyjobsCnt`, params);
};

// * 审核通过
export const auditJobPassByDealer = (param: { id: string }) => {
  return http.post(moduleUrl + `/dealjobapi/aduitp`, param);
};

// * 审核不通过
export const auditJobFailedByDealer = (param: { id: string; aduitContent: string }) => {
  return http.post(moduleUrl + `/dealjobapi/aduitf`, param);
};
